package com.qf.springboot.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务类
 * @author zjw
 */
@Component
public class MyJob {
    @Scheduled(cron = "0/3 * * * * ?")
    public void saySomeThing(){
        System.out.println("嘿嘿嘿");
    }
}
